class User < ActiveRecord::Base

  before_save :secure_password

  def secure_password
    pass = Digest::SHA1.hexdigest(self.password)
    self.password = pass
  end
end
